/*
 * SpringQueuedCommand.cpp
 *
 *  Created on: Nov 20, 2008
 *      Author: Ryan
 */

#include "SpringQueuedCommand.h"

SpringQueuedCommand::SpringQueuedCommand( OOInterface::ConstCommandPtr command ):
	OOInterface::QueuedCommand( command )
{
}

SpringQueuedCommand::~SpringQueuedCommand()
{
}

::Command* SpringQueuedCommand::getCommand() const
{
	const SpringCommand* cmd = dynamic_cast< const SpringCommand* > ( getDecoratedCommand().get() );

	cmd->getCommand()->options = SHIFT_KEY;
	//SHIFT_KEY makes commands queue up behind other commands rather than bumping them out

	return cmd->getCommand();
}
